<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>js在array头插入元素</title>
</head>
<body>
<script type="text/javascript">
    var fuckarr=["1","2"];
    fuckarr.unshift("3","4","5","6");
    // 3,4,5,6,1,2
    alert(fuckarr);
</script>
</body>
</html>